//
// Created by wze-zero on 2024/7/26 026.
//
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
    int num;
    vector<int> v;
    for (int i = 0; i < 5; i++) {
        cin >> num;
        v.push_back(num);
    }
    sort(v.begin(),v.end(),greater<int>());
    for (vector<int>::iterator i=v.begin();i!=v.end();++i) {
        cout<<*i<<" ";
    }
    cout<<endl;
    return 0;
}